<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>办件详情</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/app.css">
		<style>
			/*其他*/
			
			.mui-bar-nav~.mui-content {
				padding: 0;
				margin-top: .9rem;
			}
			
			.mui-content,
			.mui-table-view {
				background-color: #fff;
			}
			
			.mui-slider-item {
				min-height: 10rem;
			}
			
			.mui-segmented-control {
				text-align: center;
			}
			
			.mui-slider-indicator.mui-segmented-control {
				text-align: center;
				background-color: #fff;
				margin: auto;
				/*padding: 0 1.5rem;*/
				box-sizing: border-box;
			}
			
			.mui-segmented-control .mui-control-item {
				float: left;
				width: 1.7rem;
				color: #999;
				margin: auto;
				padding: .1rem 0;
				font-size: .3rem;
				box-sizing: border-box;
			}
			
			.mui-segmented-control:first-child {
				padding-left: .4rem;
			}
			
			.mui-segmented-control.mui-segmented-control-inverted~.mui-slider-progress-bar {
				width: 1.7rem;
				margin-left: .4rem;
			}
			
			.mui-table-view .list_box {
				width: 3.1rem;
				height: 1.05rem;
				line-height: 1.05rem;
				/*border: 1px solid #cbcbcb;*/
				background-color: #fff;
				text-align: center;
				display: inline-block;
				margin-bottom: .3rem;
			}
			/*.mui-sliders{z-index:1;width:100%;overflow:hidden;margin:0 auto;background:#fff;}
			.mui-sliders .mui-slider-groups{position: absolute; top:1.55rem;bottom: 0;width: 100%;height: auto;overflow:auto;background:#fff;}
			.mui-sliders .mui-slider-groups .mui-slider-item {position: relative;display: inline-block;width: 100%;
    height: 100%;vertical-align: top; white-space: normal;}*/
			
			.mui-sliders .mui-segmented-control.mui-segmented-control-inverted~.mui-slider-group .mui-slider-item {
				border: none;
			}
			/*切换菜单*/
			
			.mui-segmented-control {
				width: 6rem;
				overflow: hidden;
				margin: 0 auto;
				background: #f4f4f4;
				border-radius: .1rem;
				height: .82rem;
				line-height: .82rem;
				margin-bottom: .3rem;
				margin-top: .47rem;
			}
			
			.mui-segmented-control .mui-control-item {
				line-height: .82rem;
				font-size: .3rem;
			}
			
			.mui-segmented-control .mui-control-item {
				color: #666
			}
			
			.mui-segmented-control .mui-control-item.mui-active {
				background: #1653fc;
				color: #fff;
				border-radius: .1rem;
			}
			
			.mui-segmented-control .mui-control-item,
			.mui-segmented-control {
				border: none;
			}
			/*基本信息*/
			
			.basic_info {
				width: 100%;
				float: left;
				padding: 0;
				margin: 0;
			}
			
			.basic_info>li {
				width: 100%;
				height: .85rem;
				line-height: .85rem;
				border-bottom: 1px solid #eee;
			}
			
			.basic_info>li>label {
				width: 1.85rem;
				float: left;
				text-align: right;
				font-size: .26rem;
				color: #999;
			}
			
			.basic_info>li>span {
				font-size: .26rem;
				color: #333;
				width: 5.12rem;
				float: right;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			/*材料信息*/
			
			.datum_cont {
				width: 100%;
				float: left;
				background: #f5f5f5;
			}
			
			.datum_cont .datum_cont_list {
				padding: .25rem;
				box-sizing: border-box;
				width: 100%;
				background: #fff;
				margin-bottom: .15rem;
				float: left;
			}
			
			.datum_cont_list .datum_left {
				width: .85rem;
				text-align: center;
				float: left;
				font-size: .26rem;
				line-height: 3.2;
			}
			
			.datum_cont_list .datum_right {
				width: 6rem;
				float: left;
			}
			
			.datum_cont_list .datum_right .datum_title,
			.datum_info {
				width: 100%;
				float: left;
			}
			
			.datum_right .datum_title>.titles {
				line-height: .45rem;
				color: #333;
				font-size: .26rem;
				max-width: 5.1rem;
				float: left;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			
			.datum_right .datum_title>.titles_type {
				color: #fff;
				font-size: .18rem;
				padding: 0 .12rem;
				background: #f6782b;
				height: .32rem;
				line-height: .37rem;
				float: left;
				border-radius: .06rem;
				margin-top: .02rem;
			}
			
			.datum_info>span {
				font-size: .24rem;
				color: #777;
				float: left;
				max-width: 45%;
				white-space: nowrap;
				float: left;
				margin-right: .25rem;
				line-height: .4rem;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			
			.datum_right .datum_title .blue_bg {
				background: #2bc9f6;
			}
			/*意见列表*/
			
			.material_cont {
				width: 7.5rem;
				overflow: hidden;
				margin: 0;
				background: #f5f5f5;
				float: right;
			}
			
			.material_cont .material_list {
				width: 100%;
				float: left;
				padding: .25rem 0 0 .15rem;
				background: #fff;
				margin-bottom: .15rem;
			}
			
			.material_cont .material_list .material_list_left {
				width: .46rem;
				float: left;
				margin-top: .2rem;
			}
			
			.material_cont .material_list .material_list_left>img {
				width: .42rem;
				height: .42rem;
				float: right;
			}
			
			.material_list_right {
				width: 6.7rem;
				float: right;
				padding-bottom: .15rem;
			}
			
			.material_list_right>h6 {
				width: 100%;
				float: left;
				margin: 0;
			}
			
			.material_list_right>h6 .titles {
				line-height: .55rem;
				font-size: .28rem;
				color: #333;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				width: 5.5rem;
				float: left;
			}
			
			.material_list_right>h6 .tit_icon {
				font-size: .26rem;
				color: #1653fc;
				float: left;
				line-height: .58rem;
			}
			
			.material_list_right>p {
				width: 100%;
				float: left;
				line-height: .34rem;
				font-size: .26rem;
				color: #777;
				margin: 0;
			}
			
			.material_list_right>.lsit {
				width: 100%;
				float: left;
				line-height: .74rem;
				height: .74rem;
				font-size: .26rem;
				color: #666;
				border-bottom: 1px solid #f5f5f5;
			}
			
			.material_list_right>.lsit .blue {
				color: #01b2e4;
			}
			
			.material_list_right>.lsit:last-child {
				border-bottom: none;
			}
			
			.none_arrow:after {
				content: ""
			}
			
			.red {
				color: #ff0000;
			}
			
			.mui-slider .mui-segmented-control.mui-segmented-control-inverted~.mui-slider-group .mui-slider-item {
				border-bottom: 0;
				border-top: 1px solid #eee;
			}
		</style>
	</head>
	<body>
		<!--头部-->
		<!--<div class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<a class="back">返回</a>
			<h1 class="mui-title">办件详情</h1>
			
		</div>-->
		<div class="mui-content">
			<div class="mui-slider">
				<div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<a class="mui-control-item mui-active" href="#item1">
						基本信息
					</a>
					<a class="mui-control-item" href="#item2">
						材料信息
					</a>
					<a class="mui-control-item" href="#item3">
						意见列表
					</a>
					<a class="mui-control-item" href="#item4">
						收费列表
					</a>
				</div>
				<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
				<div class="mui-slider-group" id="itemContents">
					<!--基本信息-->
					<div id="item1" class="mui-slider-item mui-control-content mui-active">
						<div id="scroll" class="">
							<ul class="basic_info">
								<li>
									<label>办件编号</label>
									<span>{{caseInfo.caseNum}}</span>
								</li>
								<li>
									<label>事项名称</label>
									<span>{{caseInfo.serviceName}}</span>
								</li>
								<li>
									<label>申请人/单位</label>
									<span>{{caseInfo.applyName}}</span>
								</li>
								<li>
									<label>申请时间</label>
									<span>{{caseInfo.applyTime}}</span>
								</li>
								<li>
									<label>经办人</label>
									<span>{{caseInfo.jbrName}}</span>
								</li>
								<li>
									<label>办件类型</label>
									<span>{{caseInfo.serviceType}}</span>
								</li>
								<li>
									<label>当前办理状态</label>
									<span>{{caseInfo.blStatusVal}}</span>
								</li>
								<li>
									<label>受理时间</label>
									<span>{{caseInfo.blTime}}</span>
								</li>
								<li>
									<label>审批单位</label>
									<span>{{caseInfo.organName}}</span>
								</li>
								<li>
									<label>办结时间</label>
									<span>{{caseInfo.bjTime}}</span>
								</li>
								<li v-if="caseInfo.sqgzd_show">
									<label>申请告知单</label>
									<span><a class="blue"></a></span>
								</li>
								<li v-if="caseInfo.cxsqgzd_show">
									<label>撤销告知单</label>
									<span><a class="blue"></a></span>
								</li>
								<li v-if="caseInfo.sltzs_show">
									<label>受理通知书</label>
									<span><a class="blue" id="sltzs" :materialOid='caseInfo.sltzs_oid' :name='caseInfo.sltzs_type'>下载</a></span>
								</li>
								<li v-if="caseInfo.bqbzsm_show">
									<label>补齐补正说明</label>
									<span><a class="blue">{{caseInfo.bqbzsm}}</a></span>
								</li>
							</ul>
						</div>
					</div>
					<!--材料信息-->
					<div id="item2" class="mui-slider-item mui-control-content">
						<div id="scroll" class="">
							<div class="datum_cont" v-if="materials_show">
								<div class="datum_cont_list" v-for="material in materials">
									<span class="datum_left">{{material.xh}}</span>
									<div class="datum_right">
										<div class="datum_title">
											<span class="titles">{{material.clmc}}</span>
											<span class="titles_type">{{material.sfsq}}</span>
										</div>
										<div class="datum_info">
											<span class="pay_type">收取方式：{{material.sqfs}}</span>
											<span class="pay_time">收取时间：{{material.sqsj}}</span>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!--意见列表-->
					<div id="item3" class="mui-slider-item mui-control-content">
						<div id="scroll" class="">
							<div class="material_cont" v-if="yjlbs_show">
								<div class="material_list" v-for="yjlb in yjlbs">
									<div class="material_list_left"><img src="../../images/work/ban.png"></div>
									<div class="material_list_right">
										<h6><span class="titles">环节名称:{{yjlb.hjmc}}</span></h6>
										<div class="datum_info">
											<span class="pay_type">办理人名称：{{yjlb.blrmc}}</span>
											<span class="pay_time" style="overflow:visible">审查时间：{{yjlb.scsj}}</span>
										</div>
										<div class="lsit" style="height:auto;">审查结果：<span class="red">{{yjlb.scjg}}</span></div>
										<div class="lsit" style="height:auto;">审查意见：{{yjlb.scyj}}</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!--收费列表-->
					<div id="item4" class="mui-slider-item mui-control-content">
						<div id="scroll" class="">
							<div class="material_cont" v-if="fylbs_show">
								<div class="material_list" v-for="fylb in fylbs">
									<div class="material_list_left"><img src="../../images/work/ban.png"></div>
									<div class="material_list_right">
										<span class="titles">收费项目名称:{{fylb.chargeName}}</span>
										<div class="datum_info">
											<span class="pay_type">数量/项目总额：{{fylb.amount}}</span>
											<span class="pay_type" style="overflow:visible">单价/费率：{{fylb.unitPrice}}</span>
											<span class="pay_type" style="overflow:visible">单位：{{fylb.unit}}</span>
											<span class="pay_type" style="overflow:visible">金额：{{fylb.sumMoney}}</span>
										</div>
									</div>
								</div>

							</div>
						</div>
						<div id="scroll" class="">
							<ul class="basic_info">
								<li>
									<label>实收金额</label>
									<span><input id="jine" type="number" :value="caseInfo.sumMoney-caseInfo.discountMoney" :paymentOrder="caseInfo.paymentOrder" style="width: 100px;" readonly="readonly"/></span>
									<button id="zhifubao" class="mui-btn mui-btn-warning mui-btn-block">支付宝支付</button>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<script src="../../js/mui.min.js"></script>
		<script src="../../js/jquery2.2.4.min.js"></script>
		<script src="../../js/common.js"></script>
		<script src="../../js/vue.min.js"></script>
		<script src="../../js/casePayment.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/app.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="../../js/file.js"></script>

		<script>
			mui.init({
				swipeBack: false
			});

			mui.plusReady(function() {
				var zwfwCaseId = localStorage.getItem("zwfwCaseId");
				loadData(zwfwCaseId);
               document.getElementById('zhifubao').addEventListener('tap', function() {
					var totalAmount = document.getElementById("jine").value;
					var billId = document.getElementById("jine").getAttribute('paymentOrder');
					var subject = encodeURIComponent("办件交费");
					var subdesc = appName + '-' + subject; 
					pay(totalAmount,subject,subdesc,billId); 
				}, false);
			});
			var itemContents = new Vue({
				el: '#itemContents',
				data: {
					caseInfo: {}, //办件基本数据
					materials: [], //材料列表信息
					yjlbs: [], //意见列表信息
					fylbs: [], //费用列表信息
					yjlbs_show: false, //意见列表是否有数据 false 表示无数据  true 表示有数据
					materials_show: false, //材料列表是否有数据 false 表示无数据  true 表示有数据
					fylbs_show: false //费用列表是否有数据 false 表示无数据  true 表示有数据
				}
			});

			/**
			 * 加载办件数据
			 * @param {Object} zwfwCaseId 办件主键
			 */
			function loadData(zwfwCaseId) {
				var param = 'zwfwCaseId=' + zwfwCaseId;
				var url = 'appHttpService/viewZwfwCase.do';
				utils.ajax(url, function(data) {
					data = JSON.parse(data);

					if(data.state == 0) {
						var zwfwCaseAppVo = JSON.parse(data.zwfwCaseAppVo);
						var caseStausTypeMap = JSON.parse(data.caseStausTypeMap);
						var allOpinionMap = JSON.parse(data.allOpinionMap);

						//判断补齐补正表是否为空，设置补齐补正说明
						var bqbzsm = zwfwCaseAppVo.qlCaseCorrection;
						if(bqbzsm != undefined && bqbzsm != null) {
							bqbzsm = bqbzsm.correctionReason;
						}
						//受理通知书是否为空
						var sltzs_show = false;
						var sltzs_oid = "";
						var sltzs_type = "";
						if(zwfwCaseAppVo.slNotice != undefined && null != zwfwCaseAppVo.slNotice) {
							sltzs_show = true;
							sltzs_oid = zwfwCaseAppVo.slNotice.oid;
							sltzs_type = zwfwCaseAppVo.slNotice.extensionName;
						}

						//判断申请告知单 是否显示
						var sqgzd_show = false;
						//判断撤销申请告知单是否显示
						var cxsqgzd_show = false;
						//办件来源为网上申请（1表示网上申请） 同时办件状态等于暂存（0表示暂存）
						if(zwfwCaseAppVo.caseSource == 1 && zwfwCaseAppVo.blStatus == 0) {
							sqgzd_show = true;
							//当办件状态为撤销申报（8表示撤销申报）时显示
							if(zwfwCaseAppVo.blStatus == 8) {
								cxsqgzd_show = true;
							}
						}

						//alert(JSON.stringify(zwfwCaseAppVo.sfCaseCharge));
						itemContents.caseInfo = {
							caseId: zwfwCaseAppVo.caseId,
							caseNum: zwfwCaseAppVo.caseNum,
							serviceName: zwfwCaseAppVo.serviceName,
							serviceId: zwfwCaseAppVo.serviceId,
							applyName: zwfwCaseAppVo.applyName,
							applyTime: utils.format(zwfwCaseAppVo.applyTime, 'yyyy-MM-dd HH:mm:ss'),
							jbrName: zwfwCaseAppVo.jbrName,
							serviceType: getServiceTypeVal(zwfwCaseAppVo.serviceType),
							blStatusVal: getStaticParas(caseStausTypeMap, zwfwCaseAppVo.blStatus),
							blStatus: zwfwCaseAppVo.blStatus,
							blTime: utils.format(zwfwCaseAppVo.blTime, 'yyyy-MM-dd HH:mm:ss'),
							organName: zwfwCaseAppVo.organName,
							bjTime: utils.format(zwfwCaseAppVo.bjTime, 'yyyy-MM-dd HH:mm:ss'),
							bqbzsm_show: getBqbzsm(zwfwCaseAppVo.blStatus),
							bqbzsm: bqbzsm,
							sltzs_show: sltzs_show,
							sltzs_oid: sltzs_oid,
							sltzs_type: sltzs_type,
							sqgzd_show: sqgzd_show,
							cxsqgzd_show: cxsqgzd_show,
							sumMoney: zwfwCaseAppVo.sfCaseCharge.sumMoney,
							discountMoney:zwfwCaseAppVo.sfCaseCharge.discountMoney,
							paymentOrder:zwfwCaseAppVo.sfCaseCharge.paymentOrder
						};
						
//						document.getElementById('jine').value = zwfwCaseAppVo.sfCaseCharge.sumMoney;
						//材料信息
						if(data.zwfwCaseMaterialList != undefined && data.zwfwCaseMaterialList != null) {
							itemContents.materials_show = true;
							itemContents.materials = itemContents.materials.concat(convertMaterials(JSON.parse(data.zwfwCaseMaterialList), zwfwCaseAppVo.blStatus));
						} else if(data.netCaseMaterialRecList != undefined && data.netCaseMaterialRecList != null) {
							itemContents.materials_show = true;
							itemContents.materials = itemContents.materials.concat(convertMaterials(JSON.parse(data.netCaseMaterialRecList), zwfwCaseAppVo.blStatus));
						}
						if(zwfwCaseAppVo.sfCaseCharge == null) {
							itemContents.fylbs_show = false;
						} else {
							itemContents.fylbs_show = true;
							var fylbs = [];
							var index = 0;
							if(zwfwCaseAppVo.sfCaseChargeItemList != null) { //费用列表
								fylbs = convertFylbs(zwfwCaseAppVo.sfCaseChargeItemList, index);
							}
							//将或得的意见列表数据添加到vue中
							itemContents.fylbs = itemContents.fylbs.concat(fylbs);
						}
						//意见列表

						if(zwfwCaseAppVo.internetAuditRecord == null && zwfwCaseAppVo.zwfwCaseAuditRecList == null) {
							itemContents.yjlbs_show = false;
						} else {
							itemContents.yjlbs_show = true;
							var yjlbs = [];
							var index = 0;
							if(zwfwCaseAppVo.internetAuditRecord != null) { //互联网预审记录
								var scjgVar = "";
								if(zwfwCaseAppVo.internetAuditRecord.auditResult == 0) {
									scjgVar = "预审通过";
								}

								if(zwfwCaseAppVo.internetAuditRecord.auditResult == 1) {
									scjgVar = "预审不通过";
								}

								var scsj = utils.format(zwfwCaseAppVo.internetAuditRecord.createDate, 'yyyy-MM-dd HH:mm');
								yjlbs.push({
									xh: '1',
									hjmc: "预审",
									blrmc: zwfwCaseAppVo.internetAuditRecord.userName,
									scsj: scsj,
									scjg: scjgVar,
									scyj: zwfwCaseAppVo.internetAuditRecord.resultDesc
								});

								index = 1;
							}

							if(zwfwCaseAppVo.zwfwCaseAuditRecList != null) { //审批环节审查记录
								yjlbs = convertYjlbs(zwfwCaseAppVo.zwfwCaseAuditRecList, yjlbs, allOpinionMap, index);
							}

							//将或得的意见列表数据添加到vue中
							itemContents.yjlbs = itemContents.yjlbs.concat(yjlbs);
						}
					}
					closeWaitingAndShowView();
				}, param);
			}

			/**
			 * 意见列表字段组装
			 * @param {Object} items 服务端返回列表数据
			 * @param {Object} yjlbs 互联网预审记录 
			 * @param {Object} allOpinionMap 审查结果集合
			 * @param {Object} index 互联网预审记录标识 0表示没有互联网预审记录  1表示有互联网预审记录
			 */
			function convertYjlbs(items, yjlbs, allOpinionMap, index) {
				var newItems = yjlbs;
				var index = 0;
				if(index == 1) {
					index = index + 1;
				}
				items.forEach(function(item) {
					index++;
					var scsj = utils.format(item.auditTime, 'yyyy-MM-dd HH:mm');
					newItems.push({
						xh: index,
						hjmc: item.stepName,
						blrmc: item.userName,
						scsj: scsj,
						scjg: getStaticParas(allOpinionMap, item.auditStatus),
						scyj: item.auditOpinion
					});
				});
				return newItems;
			}

			//
			function convertFylbs(items, index) {
				var newItems = [];
				var index = 0;
				items.forEach(function(item) {
					index++;
					newItems.push({
						xh: index,
						chargeName: item.chargeName,
						amount: item.amount,
						unitPrice: item.unitPrice,
						sumMoney: item.sumMoney,
						unit: item.unit
					});
				});
				return newItems;
			}
			/**
			 * 材料信息字段组装
			 * 1、将服务端返回数据，转换成前端需要的格式
			 * 2、若服务端返回格式和前端所需格式相同，则不需要改功能
			 * @param {Object} items 将服务端返回数据，转换成前端需要的格式
			 * @param {Object} blStatus 办件状态
			 */
			function convertMaterials(items, blStatus) {
				var newItems = [];
				var index = 0;
				items.forEach(function(item) {
					index++;
					if(blStatus == 0) { //暂存
						var isSq = "已收取";
						var isSqsj = "";
						if(!item.caseAttaId && !item.licenseNumber) {
							isSq = "未收取";
						} else {
							isSqsj = item.createDate ? item.createDate.substring(0, 11) : "";
						}

						var isSqfs = "";
						if(item.isWindowSubmit == 'Y') {
							isSqfs = '窗口提交';
						} else if(item.isWindowSubmit == 'N') {
							isSqfs = '附件上传';
						} else {
							isSq = '未收取';
							isSqfs = '无';
						}

						//判断是否有查看已提交材料权限
						var isCz = false;
						if(null != item.caseAttaId || null != item.licenseNumber) {
							isCz = true;
						}

						newItems.push({
							xh: index,
							clmc: item.sxServiceMaterial.materialName,
							sfsq: isSq,
							sqfs: isSqfs,
							sqsj: isSqsj,
							caseId: item.caseId,
							oid: item.oid,
							cz: isCz
						});
					} else {
						var isSq = "";
						var isSqsj = "";
						if(item.collectionFlag == 1) {
							isSq = "未收取";
						} else {
							isSq = "已收取";
							isSqsj = item.collectionDate ? item.collectionDate.substring(0, 11) : "";
						}
						var isSqfs = "";
						if(item.collectionType == 0) {
							isSqfs = '窗口提交';
						} else {
							isSqfs = '附件上传';
						}
						//判断是否有查看已提交材料权限
						var isCz = false;
						if(item.collectionType != 0) {
							isCz = true;
						}
						newItems.push({
							xh: index,
							clmc: item.sxServiceMaterial.materialName,
							sfsq: isSq,
							sqfs: isSqfs,
							sqsj: isSqsj,
							caseId: '',
							oid: item.caseMaterialOid,
							cz: isCz
						});
					}
				});
				return newItems;
			}

			/**
			 * 判断是否显示补齐补正说明  true表示显示
			 * @param {Object} blStatus 办件状态
			 */
			function getBqbzsm(blStatus) {
				//当办件状态为补齐补正时显示补齐补正说明
				if(blStatus == 5) {
					return true;
				}
				return false;
			}

			/**
			 * 获取政务服务办件类型汉字
			 * @param {Object} serviceType 政务服务办件类型
			 */
			function getServiceTypeVal(serviceType) {
				var serviceTypeVal = "";
				if(serviceType == 0) {
					serviceTypeVal = "公共服务";
				}
				if(serviceType == 1) {
					serviceTypeVal = "行政权力";
				}
				return serviceTypeVal;
			}

			//通过值查找出静态变量中对应的文字
			function getStaticParas(staticAttributeMap, attribute) {
				var val = "";
				$.each(staticAttributeMap, function(key, value) {
					$.each(value, function(key, value) {
						if(attribute == key) {
							val = value;
							return false; //用false结束循环  
						}
					});
				});
				return val;
			}

			//受理通知书下载
			if(document.getElementById("sltzs")) document.getElementById("sltzs").addEventListener('tap', function(event) {
				var materialOid = this.getAttribute('materialOid');
				var fileType = this.getAttribute('name');

				var url = utils.HOST + 'appHttpService/appDownLoadFile.do?materialOid=' + materialOid;
				//开始下载
				showOrDown(url, materialOid, null, fileType, function(path) {
					openDir(path);
				})

			});
		</script>
	</body>

</html>